'use strict';
module.exports = appInfo => {
    const config = exports = {};
    config.keys = appInfo.name + '_1646401317925_2988';
    config.middleware = [];
    config.security = {
        csrf: {
            enable: false,
        },
        // 配置白名单
        domainWhiteList: ['http://*.*.*.*:*'],
    };
    config.bodyParser = {
        jsonLimit: '1mb',
        formLimit: '1mb',
        enableTypes: ['json', 'form', 'text'],
        extendTypes: {
            text: ['text/plain', 'application/json', 'text/json'],
        },
    };
    config.cluster = {
        listen: {
            path: '',
            port: 7001,
            hostname: '0.0.0.0',
        },
    };
    const userConfig = {};
    return {
        ...config,
        ...userConfig,
    };
};